import request from '@/plugins/request';


//设备统计
export function deviceTotal(data) {
    return request({
        url:'/api/web/index/getDeviceCount',
        method: 'get',
        params:{...data}
    });
}
//告警情况分析
export function alarmEventCount(data) {
    return request({
        url:'/api/web/index/getAlarmEventCountOnDate',
        method: 'get',
        params:{...data}
    });
}
//告警信息
export function alarmEvent(data) {
    return request({
        url:'/api/web/index/getAlarmEvent',
        method: 'get',
        params:{...data}
    });
}

//全年数据分析
export function deviceCountOnDateAndModel(data) {
    return request({
        url:'/api/web/index/getDeviceCountOnDateAndModel',
        method: 'get',
        params:{...data}
    });
}